package com.example.shopping_web_back.service.impl;

import com.example.shopping_web_back.pojo.MonthlySalesNumDTO;
import com.example.shopping_web_back.pojo.MonthlySalesPriceDTO;
import com.example.shopping_web_back.pojo.OrdersOfGoods;
import com.example.shopping_web_back.pojo.PageBean;

import java.util.List;

public interface OrderServiceImpl {

    //添加订单
    void addOrder(OrdersOfGoods ordersOfGoods);

    //修改信息
    void updateOrder(String arriveTime, String emailTime, String shippingTime, String deliveryTime, String  status, String buyTime, String businessName, String goodsName, String customerName);

    void deleteOrder(OrdersOfGoods ordersOfGoods);

    //分页获取订单信息
    PageBean<OrdersOfGoods> list(Integer pageNum, Integer pageSize);

    //分页获取订单信息（商家版)
    PageBean<OrdersOfGoods> listBusiness(Integer pageNum, Integer pageSize);

    //获取商家的总的销售额
    double gotTotalSalesPrice(String businessName);

    //获取商家的总的销售数量
    Integer gotTotalSalesNum(String businessName);

    //获取商家过去六个月的销售数量
    List<MonthlySalesNumDTO> gotSixMonthSalesNum(String businessName);

    //获取商家过去六个月的销售金额
    List<MonthlySalesPriceDTO> gotSixMonthSalesPrice(String businessName);
}
